<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"	
	xmlns:tags="http://tags.com/facelets">

  	<tags:input label="#{msg[label].concat(':')}" id="#{id}" rendered="#{rendered}" required="#{required}">
  		<h:inputText id="#{id}" styleClass="form-control" 
  			value="#{value}" 
    		title="#{(not empty tooltip)? msg[tooltip].concat('.'): msg['fw.generic.txt.tooltip'].concat(' ').concat(label.replace(':','').toLowerCase()).concat('.')}" 
    		rendered="#{(empty rendered or rendered)}" 
    		pt:required="#{required}"  		
			disabled="#{not empty disabled and disabled}"
    		pt:data-requiredMessage="#{(not empty requiredMessage)? msg[requiredMessage]: msg['fw.generic.txt.requiredMessageBegin'].concat(' ').concat(label.replace(':',' ').toLowerCase()).concat( msg['fw.generic.txt.requiredMessageEnd'])}"
  			pt:data-toggle="tooltip"
    		pt:data-placement="top"  
    		pt:autofocus="#{autofocus}"
  			/> 
  	</tags:input>  
  	
  	
</ui:composition>